#ifndef PLAYER_H
#define PLAYER_H

#include "Cube.h"
#include "Controller.h"
#include "Block.h"
#include "Circle.h"
#include "EntityGroup.h"

class Player : public EntityGroup
{
	PlayerMovementMap m_movement;
private:
	long m_endJumpTime;
	bool m_jumping;
	bool m_intersecting;
	bool m_dead;
	bool m_haswon;
public:
	Player();
	void init();
	Player( const Position& pos );

	virtual void frame( float frametime);

	void setMovementMap( const PlayerMovementMap& map) { m_movement = map; }
	virtual void collisionResponse( AbstractEntity* other );
	
};

#endif